<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>即时通讯主界面</title>
	<link href="css/index.css" rel="stylesheet" type="text/css"/>

	<!-- 引入jQuery核心js文件 -->
	<script src="dep/jQuery/jquery-3.2.1.min.js"></script>
	<!-- 引入Bootstrap核心样式文件 -->
	<link href="dep/bootstrap/bootstrap.css" rel="stylesheet">
	<link href="dep/bootstrap/bootstrap-datetimepicker.min.css"  rel="stylesheet" />
	<script type="text/javascript" src="dep/jQuery/jquery.js"></script>
	<!-- 引入BootStrap核心js文件 -->
	<script src="dep/bootstrap/bootstrap.min.js"></script>
	<!-- 引入Scrollbar的样式 -->
	<link href="dep/jQuery/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" />
	<style>
		#inputArea:focus{
			border: hidden;
		}
		</style>


</head>
<button type="button" onclick='ajax()'>change</button>
<button type="button" onclick='ajax2()'>change</button>

<script>
	function ajax(){
		var param1 = {'userName':'Tom','List':['Jerry','Bush','Luners']};
		
		$.ajax({type:'post',
				url:'http://localhost:8080/createGroup',
				dataType:'json',
				contentType:'application/json',
				data:JSON.stringify(param1),
				
				success:function(data){
					alert(data);
				}
		});
		
		
	
	
	}

	function ajax2(){
		var param = {'userName':'lixiang','keyWords':'good'};
		var show = [{"from": "000001", "content": "你好啊！", "time": "", "msgStyle":"txt"}, { "from": "000001", "content": "good good study", "time": "", "msgStyle":"txt" },{ "from": "000003", "content": "good good study", "time": "", "msgStyle":"txt" },{ "from": "000001", "content": "images/file.docx", "time": "", "msgStyle":"file" },{ "from": "000001", "content": "images/123.wav", "time": "", "msgStyle":"audio" }, { "from": "000003", "content": "images/7.jpg", "time": "", "msgStyle":"pic" },{ "from": "000003", "content": "images/15.jpg", "time": "", "msgStyle":"pic" }]
		$.post('http://localhost:8080/searchRecords',
				param,
				
				function(data){
					alert(data);
				}
		);
		
	
	
	}
</script>
<div ng-repeat="message in chatContent" class="ng-scope">

<audio src='images/123.wav' controls="false">buzhichi
</audio>

    
</div>